import QtQuick 2.0
import QtQuick.Controls 1.4
import QtQuick.Layouts 1.1
Rectangle{
    id:operatorR
    width:parent.width *2/5
    height: parent.height
    color:"gray"
    GridLayout{
        id:grid
        anchors.fill: parent
        rows:2
        columns: 3
        rowSpacing: 20
        columnSpacing: 20
        CustomKnob{
//            id:knob0
            Layout.row:0
            Layout.column: 0
            fileName: "qrc:/image/res/knob.png"

        }
        ColumnLayout{
            Layout.row:0
            Layout.column: 1
            Layout.alignment: Qt.AlignCenter
            CustomButton{
                id:spdMach

                fileNameold: "qrc:/image/res/old_state.png"
                fileNamenew: "qrc:/image/res/new_state.png"
            }
            Text{
                Layout.alignment: Qt.AlignHCenter|Qt.AlignVCenter
                text:qsTr("METRIC")
                font.bold: true
                font.pointSize: 16
                color: "white"
            }
            Text{
                Layout.alignment: Qt.AlignHCenter|Qt.AlignVCenter
                text:qsTr("ALT")
                font.bold: true
                font.pointSize: 16
                color: "white"
            }

        }
        CustomKnob{
//            id:knob1
            Layout.row:0
            Layout.column: 2
            fileName: "qrc:/image/res/knob.png"

        }

        CustomRectButton{
            Layout.alignment: Qt.AlignCenter
            Layout.row:1
            Layout.column: 0
            buttonName: "EXPED"
        }
        CustomRectButton{
            Layout.alignment: Qt.AlignCenter
            Layout.row:1
            Layout.column: 2
            buttonName: "APPR"
        }
    }
}
